package day1018;
//day1018.v1
public class V1 {
    public static void main(String[] args) {
        //++让变量增大一位
        int x=1;
        //先将x变量的值赋值给x++， 然后让x增大一位
        System.out.println(x++);//1
        System.out.println(x);

        int y=1;
        //先让增大一位，然后将增大之后y的值赋值给++y
        System.out.println(++y);//2
        System.out.println(y);//2

        int t=42;
        int rs= t++ + ++t  -  t++ +  t++;
        System.out.println(rs);
        System.out.println(t);
    }
}



